package gui.estudiante;

import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import javax.swing.JButton;
import java.awt.Rectangle;

public class DialogoEstudianteCurso extends JDialog {

	private static final long serialVersionUID = 1L;
	private PanelEstudianteCurso panelEstudianteCurso = null;
	private JButton btnSalir = null;

	/**
	 * @param owner
	 */
	public DialogoEstudianteCurso(Frame owner) {
		super(owner);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setTitle("Seleccion de Curso para los Estudiantes");
		this.setSize(897, 765);
		this.setModal(true);
		this.setContentPane(getPanelEstudianteCurso());
		this.setLocationRelativeTo(null);
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private PanelEstudianteCurso getPanelEstudianteCurso() {
		if (panelEstudianteCurso == null) {
			panelEstudianteCurso = new PanelEstudianteCurso();
			panelEstudianteCurso.setLayout(null);
			panelEstudianteCurso.add(getBtnSalir(), null);
		}
		return panelEstudianteCurso;
	}

	/**
	 * This method initializes btnSalir
	 * 
	 * @return javax.swing.JButton
	 */
	private JButton getBtnSalir() {
		if (btnSalir == null) {
			btnSalir = new JButton();
			btnSalir.setBounds(new Rectangle(783, 12, 90, 40));
			btnSalir.setText("Salir");
			btnSalir.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					DialogoEstudianteCurso.this.cerra();
				}
			});
		}
		return btnSalir;
	}

	public void cerra() {
		this.dispose();
	}
} // @jve:decl-index=0:visual-constraint="10,10"
